package com.fm.openinstall.a;

import java.util.concurrent.*;
import android.text.*;
import java.util.*;
import com.fm.openinstall.c.*;

class o extends s
{
    final /* synthetic */ String a;
    final /* synthetic */ f b;

    o(final f b, final ExecutorService executorService, final q q, final long n, final String a) {
        this.b = b;
        this.a = a;
        super(executorService, q, n);
    }

    @Override
    public b a(final long n) {
        b b;
        if ((b = this.b.a(n)) == null) {
            b b2;
            String s;
            if (!this.b.g.b()) {
                b2 = new b(com.fm.openinstall.c.c.c, -20);
                s = "WakeupStatsEnabled is disable";
            }
            else {
                if (com.fm.openinstall.c.d.a(this.b.k)) {
                    final HashMap<String, String> hashMap = new HashMap<String, String>();
                    if (!TextUtils.isEmpty((CharSequence)this.a)) {
                        hashMap.put("url", this.a);
                    }
                    final a b3 = this.b.b();
                    final String a = this.b.a("stats/wakeup");
                    final f b4 = this.b;
                    b = b3.a(a, b4.a(b4.k), hashMap);
                    this.b.b(b.e());
                    return b;
                }
                b2 = new b(com.fm.openinstall.c.c.b, -10);
                s = "network unavailable";
            }
            b2.b(s);
            return b2;
        }
        return b;
    }
}
